import { createApp } from "vue";
import { createPinia } from "pinia";
import { registerStore } from "@/stores";
import storage from "@/stores/plugin/storage";

import App from "./App.vue";

const app = createApp(App);
//pinia的缓存插件挂载
const pinia = createPinia();
pinia.use(storage);
app.use(pinia);
registerStore();

app.mount("#app");
